package com.winning.devops.batch.reader.ch05;

import org.springframework.batch.item.json.JsonItemReader;
import org.springframework.batch.item.json.JsonObjectReader;
import org.springframework.core.io.Resource;

/**
 * @author chensj
 * @date 2020-03-02 11:29
 */
public class CommonJsonItemReader<T> extends JsonItemReader<T> {

    public CommonJsonItemReader(Resource resource, JsonObjectReader<T> jsonObjectReader) {
        super(resource, jsonObjectReader);
        setJsonObjectReader(jsonObjectReader);
        setName("commonJsonItemReader");
        setResource(resource);
    }
}
